<%-- 
    Document   : ModuleForm.jsp
    Created on : Jan 4, 2012, 4:56:14 PM
    Author     : User
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!--%@taglib uri="http://struts.apache.org/tags-html"  prefix="html" %--> 
<!--%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %-->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>

<s:if test="isUpdate == false">
    <s:set name="title" value="%{'Add'}"/>
</s:if>
<s:else>
    <s:set name="title" value="%{'Edit'}"/>
</s:else>
<a href="<s:url namespace="/team" action="copyFromExsistingTeam" />">CopyTeam</a>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><s:property value="#title"/></title>
    </head>
    <body>
        you are in module;
        <s:property value="module"/> 
        <h1><s:property value="#title"/></h1>
        <s:form namespace="/team" action="update_%{team.teamId}">
         <s:actionerror/>
            <table>
                
                <tr>
                    <td valign="top">team name:</td>
                    <td><s:textfield name="team.teamId" size="20" readonly="update"/> 
                    <s:fielderror><s:param>team.teamId</s:param></s:fielderror></td>
                </tr> 
                <tr>
                    <td>description:</td>
                    <td><s:textfield name="team.description" size="20" /> 
                    <s:fielderror><s:param>team.description</s:param></s:fielderror></td>
                </tr> 
                <tr>
                    <td>size:</td>
                    <td><s:textfield name="team.size" size="20" /> 
                    <s:fielderror><s:param>team.size</s:param></s:fielderror></td>
                </tr> 
               
                <tr>
                    <td>Select Students</td>
                    
                    
     
                      <td><s:select id="students" name="students" list="{'s-001','s-002','s-003'}" multiple="true"/>
                      </td>
                </tr>
                <tr>
                    <td> 
                        <span id="url">
                        </span>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <s:hidden key="update"/>
                        <br/>
                        <s:submit label="submit"/>
                        &nbsp;&nbsp;&nbsp;
                        <s:submit key="cancel" value="Canel" action="list_all" />
                    </td>
                </tr>
            </table>
        </s:form>
        
    </body>
     
</html>
